process sentence